package xyz.msj.hrm.service;

import com.baomidou.mybatisplus.service.IService;
import xyz.msj.hrm.domain.CoursePromotion;
import xyz.msj.hrm.dto.CoursePromotionDto;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mushengjie
 * @since 2020-09-18
 */
public interface ICoursePromotionService extends IService<CoursePromotion> {
    /**
     * 课程促销
     * @param coursePromotionDto
     */
    void promotion(CoursePromotionDto coursePromotionDto);

    /**
     * 课程促销查询
     */
    List<CoursePromotion> getPromotion();

    /**
     * 课程促销抢购
     * @param id
     */
    void promotionRush(Long id);

}
